package org.example;

import lombok.extern.slf4j.Slf4j;
import org.example.domain.Tiktok;
import org.example.service.TiktokService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
@Slf4j
public class Demo {

    @Autowired
    private TiktokService tiktokService;

    @Test
    public void test01(){
        Tiktok tiktok = new Tiktok();
        tiktok.setCover("5555");
        tiktok.setLink("1221");
        tiktok.setTags("shuai");
        tiktok.setTitle("ceshiyixia");
        tiktokService.save(tiktok);
    }
}
